{% load crispy_forms_tags %}

{% for field in form %}
    {% if field.is_hidden %}
        {{ field }}
    {% else %}
        <div class="form-group">
            <div class="col-auto">
                {{ field | as_crispy_field }}
            </div>
        </div>
    {% endif %}
{% endfor %}